<template>
    <div>
        account
        {{ count }}
        <button @click="addCount"> add </button>
    </div>
</template>

<script setup lang="ts">
import { storeToRefs } from 'pinia';
import { useHomeStore } from '~/store/home';



const homeStore = useHomeStore()
const { count } = storeToRefs(homeStore) 

const addCount = () =>{
    homeStore.add()
}

</script>

<style scoped>

</style>